package com.hd.entity.activiti.example;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import com.hd.entity.activiti.BaseVO;

@Entity
@Table(name = "t_leave")
public class Leave extends BaseVO implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -6919396688498995805L;
	@Id
	private String id;
	private String processInstanceId; // 流程实例Id
	/**
	 * 请假人id
	 */
	private String userid;
	/**
	 * 请假人
	 */
	private String userName;
	/**
	 * 请假天数
	 */
	private String days;
	/**
	 * 请假日期
	 */
	@Temporal(TemporalType.DATE)
	private Date leaveDate;
	/**
	 * 请假原因
	 */
	@Column(name = "reason", columnDefinition = "TEXT", nullable = true)
	private String reason;
	private Integer status; // 审核状态 未提交 审核中 审核通过 审核未通过
	
	/**
	 * 标题
	 */
	private String title;
	/**
	 * 查询请假日期的起始参数
	 */
	@Transient
	private Date leaveDateStart;
	/**
	 * 查询请假日期的结束参数
	 */
	@Transient
	private Date leaveDateEnd;


	public String getDays() {
		return days;
	}

	public void setDays(String days) {
		this.days = days;
	}

	public Date getLeaveDate() {
		return leaveDate;
	}

	public void setLeaveDate(Date leaveDate) {
		this.leaveDate = leaveDate;
	}

	public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getProcessInstanceId() {
		return processInstanceId;
	}

	public void setProcessInstanceId(String processInstanceId) {
		this.processInstanceId = processInstanceId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getLeaveDateStart() {
		return leaveDateStart;
	}

	public void setLeaveDateStart(Date leaveDateStart) {
		this.leaveDateStart = leaveDateStart;
	}

	public Date getLeaveDateEnd() {
		return leaveDateEnd;
	}

	public void setLeaveDateEnd(Date leaveDateEnd) {
		this.leaveDateEnd = leaveDateEnd;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

}
